export function jump (url,type){
	
	switch (type){
		case 'navigate':
			uni.navigateTo({
			    url: url
			});
			break;
		case 'redirect':
			uni.redirectTo({
			    url: url
			});
			break;
		case 'reLaunch':
			uni.reLaunch({
			    url: url
			});
			break;
		case 'switch':
			uni.switchTab({
			    url: url
			});
			break;
		case 'web':
			uni.navigateTo({
			    url: '/pages/web/index?link=' + encodeURIComponent(JSON.stringify(url))
			});
			break;
		default:
			uni.navigateTo({
				url: url
			});
			break;
	}
}